﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using MetroTileItem = DevComponents.DotNetBar.Metro.MetroTileItem;
using MetroTileColor = DevComponents.DotNetBar.Metro.eMetroTileColor;
namespace Hb56
{
    public class decode
    {
        public decode()
        {

        }
    }
    static public class metroExpand
    {
        /// <summary>
        /// 构建一个属于自己的metroItem
        /// </summary>
        /// <param name="strText">厂箱名字</param>
        /// <param name="Color">颜色</param>
        /// <returns>MetroItem</returns>
        static public MetroTileItem MetroItemInit(string strText,MetroTileColor Color)
        {
            MetroTileItem TILE = new MetroTileItem(strText);
            TILE.TileColor = DevComponents.DotNetBar.Metro.eMetroTileColor.DarkGreen;
            TILE.TitleTextFont = new Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 134);
            TILE.TitleTextAlignment = ContentAlignment.MiddleCenter;
            TILE.TitleText = strText;
            return TILE;
        }
    }
}
